import request from './request'

export const operationLogApi = {
  // 分页查询操作日志
  pageOperationLogs(params) {
    return request.get('/monitor/log/page', { params })
  },
  
  // 获取操作日志详情
  getLogById(id) {
    return request.get(`/monitor/log/${id}`)
  },
  
  // 清理旧日志
  cleanOldLogs(days) {
    return request.delete(`/monitor/log/clean/${days}`)
  },
  
  // 导出操作日志
  exportLogs(data) {
    return request.post('/monitor/log/export', data)
  }
}